package ar.com.quickMart.logic;

import java.io.Serializable;

public class UserState implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2512638140113512029L;
	
	private long id;
	private String description;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	public static UserState getActiveState(){
		
		UserState state = new UserState();
		state.setId(1);
		state.setDescription("Activo");
		
		return state;
		//TODO: cambiar a un acceso a la base dedatos
	}
	
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (id ^ (id >>> 32));
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		UserState other = (UserState) obj;
		if (id != other.id) {
			return false;
		}
		return true;
	}
	
	

}
